package sw2asteriskjava;

import org.asteriskjava.manager.ManagerConnection;
import org.asteriskjava.manager.ManagerConnectionFactory;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author gustavo.higa
 */
public class AsteriskManagerConnection {

    private static String asteriskHost  = "192.168.1.37";
    private static String asteriskUser  = "prueba";
    private static String asteriskPassword  = "1234";

    public static ManagerConnection getManagerConnection() {
        ManagerConnectionFactory factory = new ManagerConnectionFactory(asteriskHost, asteriskUser, asteriskPassword);
        return factory.createManagerConnection();
    }
}
